<!-- 编辑 -->
<script id="tpl-edit" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">模板名称 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[name]" value="{{ model.name }}" required>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">识别编号 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" value="{{ model.app_type }}" disabled>
                <small>保持唯一，为模板插件名称，比如（test）,添加后不允许修改</small>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店 </label>
            <div class="am-u-sm-9 am-u-end">
                <label class="am-radio-inline">
					<input type="radio" value="1" {{ model.is_many == 1 ? 'checked' : '' }} data-am-ucheck disabled> 支持
				</label>
				<label class="am-radio-inline">
					<input type="radio" value="0" {{ model.is_many == 0 ? 'checked' : '' }} data-am-ucheck disabled> 不支持
				</label>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">单门店购买价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="hidden" name="data[buy_single][]" value="0">
							<input type="number" name="data[buy_single][]" min="0" value="{{ model.buy_single[1] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="{{ model.buy_single[2] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="{{ model.buy_single[3] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="{{ model.buy_single[4] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="{{ model.buy_single[5] }}" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">单门店续费价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="{{ model.renew_single[0] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="{{ model.renew_single[1] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="{{ model.renew_single[2] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="{{ model.renew_single[3] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="{{ model.renew_single[4] }}" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">单门店代理价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" min="0" name="data[single_price]" value="{{ model.single_price }}" required>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店购买价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="hidden" name="data[buy_many][]" value="0">
							<input type="number" name="data[buy_many][]" min="0" value="{{ model.buy_many[1] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="{{ model.buy_many[2] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="{{ model.buy_many[3] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="{{ model.buy_many[4] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="{{ model.buy_many[5] }}" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店续费价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="{{ model.renew_many[0] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="{{ model.renew_many[1] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="{{ model.renew_many[2] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="{{ model.renew_many[3] }}" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="{{ model.renew_many[4] }}" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店代理价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" name="data[many_price]" min="0" value="{{ model.many_price }}" required>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">试用天数 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" min="0" class="tpl-form-input" name="data[trial_day]" value="{{ model.trial_day }}" required>
                <small>设置0不启用</small>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label">备注说明 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[detail]" value="{{ model.detail }}">
            </div>
        </div>							
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">显示排序 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" name="data[sort]" value="{{ model.sort }}" required>
                <small>数字越小越靠前</small>
            </div>
        </div>
    </div>  
</script>